{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\u001b[01;34m/home/njuciairs/wangshuai/competitions/finance_features_round2/\u001b[00m\r\n",
      "├── \u001b[01;34mmulti_class_cross1\u001b[00m\r\n",
      "│   ├── feature_split 1\r\n",
      "│   ├── feature_split 2\r\n",
      "│   ├── feature_split 3\r\n",
      "│   ├── feature_split 4\r\n",
      "│   ├── feature_split 5\r\n",
      "│   ├── feature_split 6\r\n",
      "│   ├── feature_split 7\r\n",
      "│   ├── feature_split 8\r\n",
      "│   ├── feature_split 9\r\n",
      "│   ├── test_features_round2_version 1\r\n",
      "│   ├── test_features_round2_version 2\r\n",
      "│   ├── test_features_round2_version 3\r\n",
      "│   ├── test_features_round2_version 4\r\n",
      "│   ├── test_features_round2_version 5\r\n",
      "│   ├── test_features_round2_version 6\r\n",
      "│   ├── test_features_round2_version 7\r\n",
      "│   ├── test_features_round2_version 8\r\n",
      "│   └── test_features_round2_version 9\r\n",
      "└── \u001b[01;34msenti_entity_goodremove\u001b[00m\r\n",
      "    ├── feature_split 1\r\n",
      "    ├── feature_split 2\r\n",
      "    ├── feature_split 3\r\n",
      "    ├── feature_split 4\r\n",
      "    ├── feature_split 5\r\n",
      "    ├── feature_split 6\r\n",
      "    ├── feature_split 7\r\n",
      "    ├── feature_split 8\r\n",
      "    ├── feature_split 9\r\n",
      "    ├── test_features_round2_version_goodremove 1\r\n",
      "    ├── test_features_round2_version_goodremove 2\r\n",
      "    ├── test_features_round2_version_goodremove 3\r\n",
      "    ├── test_features_round2_version_goodremove 4\r\n",
      "    ├── test_features_round2_version_goodremove 5\r\n",
      "    ├── test_features_round2_version_goodremove 6\r\n",
      "    ├── test_features_round2_version_goodremove 7\r\n",
      "    ├── test_features_round2_version_goodremove 8\r\n",
      "    └── test_features_round2_version_goodremove 9\r\n",
      "\r\n",
      "2 directories, 36 files\r\n"
     ]
    }
   ],
   "source": [
    "!tree /home/njuciairs/wangshuai/competitions/finance_features_round2/"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "import re\n",
    "SPECIAL_SYMBOL_RE = re.compile(r'[^\\w\\s\\u4e00-\\u9fa5\\[\\]]')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'[CLS]aaa sssa  12s 3234434 88 8 snn那你 '"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "SPECIAL_SYMBOL_RE.sub(\" \",\"[CLS]aaa sssa  12s，,?.|3234434 88&&&***8 snn那你！\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
